﻿
new Vue({
    el: '#app',
    delimiters:['[[', ']]'],

    data: {
        category_id: {{ category.category_id }},
        category_name: '{{ category.category_name }}',
        category_orderno: '{{ category.orderno }}',
    },

    methods: {
        saveGiftCategoryInfo() {
            let url = "{% url 'gma:api_edit_gift_category' %}";
            let data = {
                'category_id' : this.category_id,
                'category_name' : this.category_name,
                'category_orderno' : this.category_orderno,
            };
            new my_ajax(url, data, '', '', () => {
                show_toast('修改成功');
                redirect();
            });
        },

        cancel() {
            window.history.back();
        },
    },

    mounted() {
    },
});
